#include <stdio.h>

int main() {
    int a = 0;
    int i = 0;
    int j, k, b, d, m, n;
    while (scanf("%d", &a) != EOF) {
        b = a + 1;
        d = a;
        while (a > 0) {
            for (j = 1; j <= 2 * a; j++)
                printf(" ");
            for (k = 1; k <= i + 1; k++)
                printf("*");
            a--;
            i++;
            printf("\n");
        }
        i=0; 
        
        while (b > 0) {
            printf("*");
            b--;
        }
        printf("\n");
        while (d > 0) {
            for (m = 0; m < (a + 1) * 2; m++)
                printf(" ");
            for (n = 0; n < d; n++)
                printf("*");
            printf("\n");
            d--;
            a++;
        }
       
    }
    

    return 0;
} 
